# _*_ coding:utf-8 _*_
from django import forms


class CrawlerStartFrom(forms.Form):
    crawlerAmount = forms.CharField(required=False, help_text=u'抓取数量')
    # crawlerDate = forms.CharField(required=False, help_text=u'指定单日抓取')
    # crawlerOther = forms.CharField(required=False, help_text=u'其他参数')
    # crawlerType = forms.CharField(required=False, help_text=u'爬虫类型')
    # crawlerUrl = forms.CharField(required=True, help_text=u'爬虫地址')
    # crawlerVersion = forms.CharField(required=True, help_text=u'爬虫版本')
    dbForm = forms.CharField(required=True, help_text=u'数据表或集合名称')
    dbType = forms.CharField(required=True, help_text=u'数据库类型')
    dbUri = forms.CharField(required=True, help_text=u'数据库uri')
    dbName = forms.CharField(required=True, help_text=u'数据库名称')
    project = forms.CharField(required=True, help_text=u'项目名称')
    spider = forms.CharField(required=True, help_text=u'爬虫名称')
    storeType = forms.CharField(required=True, help_text=u'存储方式')
    crawlerDelete = forms.CharField(required=True, help_text=u'是否清除数据')